//
//  ZJGtiaozhuangViewController.m
//  FangXinLang
//
//  Created by 朱健刚 on 16/9/14.
//  Copyright © 2016年 AJY. All rights reserved.
//

#import "ZJGtiaozhuangViewController.h"
#import "ZJGTableViewController.h"
#import "HotViewController.h"
@interface ZJGtiaozhuangViewController ()<UIWebViewDelegate,UIScrollViewDelegate>


@end

@implementation ZJGtiaozhuangViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIView *view1=[[UIView alloc]init];
    view1.frame=CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width,50);
    UIButton *btn=[[UIButton alloc]init];
    [btn setImage:[UIImage imageNamed:@"white_back_ico_pressed"] forState:UIControlStateNormal];
    btn.frame=CGRectMake(0, 0, 30,view1.frame.size.height);
    [btn addTarget:self action:@selector(tiaozhuang) forControlEvents:UIControlEventTouchDown];
    [view1 addSubview:btn];

    UILabel *la=[[UILabel alloc]init];
    la.text=@"新浪新闻";
    la.frame=CGRectMake(40, 0, 100, view1.frame.size.height);
    la.textColor=[UIColor whiteColor];
    [view1 addSubview:la];
    view1.backgroundColor=[UIColor clearColor];
    [self.view addSubview:view1];
}
-(void)tiaozhuang{
    
    //HotViewController *hot=[[HotViewController alloc]init];
    
    //[UIApplication sharedApplication].keyWindow.rootViewController=hot;
    [self dismissViewControllerAnimated:YES completion:nil];

}




-(BOOL)prefersStatusBarHidden{
    return YES;
}




/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/


@end
